import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
// https://vitejs.dev/config/
export default defineConfig({
	plugins: [vueJsx(), vue()],
	server: {
		// proxy: "http://mktcms-web-stg2.daikuan.qihoo.net"
		cors: true,
		proxy: {
			'^/mas/': {
				target: 'http://mktcms-web-uat.daikuan.qihoo.net',
				changeOrigin: true
			},
			'^/mms/': {
				target: 'http://mktcms-web-uat.daikuan.qihoo.net',
				changeOrigin: true
			}
		}
	}
})
